Code Review: Loop with enclosing items every 'n' steps

welcome to shbcf.ru